package cn.tedu;

public class TextOOP {
    public static void main(String[] args) {
        Phone p = new Phone();

        System.out.println(p.color);
        System.out.println(p.price);
        System.out.println(p.size);

        //
    }


}

class Phone5 {
    private String brand;
    private String color;
    private double size;
    private double price;

    public void call() {
        System.out.println("打电话");
    }

    public void message() {
        System.out.println("发信息");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
